package cc.mxtt.mvc.service;

import java.util.List;

import cc.mxtt.mvc.model.Dept;
import cc.mxtt.mvc.model.TreeGridDept;

public interface DeptService {
	public Dept findById(String id);
	public boolean create(Dept dept);
	public boolean update(Dept dept);
	public boolean delete(String id);
	
	public boolean lock(String id);
	public boolean unLock(String id);
	
	//判断该部门下是否存在用户
	public boolean existsUser(String deptid);
	//判断该部门是否是其他部门的上级部门
	public boolean existsDept(String deptid);
	//获取部门树
	public List<TreeGridDept> getTreeGrid(String id);
	//判断部门是否被锁定
	public boolean isLock(String id);
}
